package com.founder.chd_daily_query.entity.query;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "LAND_COAL_DEMANDPLAN")
public class LandCoalDemandplanEntity {

    @Id
    @Column(name = "DEMAND_SUPPLIER_ID")
    private String demandSupplierId;


    @Column(name = "DEMAND_PLAN_ID")
    private String demandPlanId;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "DEMAND_PLAN_DATE")
    private Date demandPlanDate;

    @Column(name = "SUPPLY_PROVINCE_ID")
    private String  supplyProvinceId;

    @Column(name = "AREA_COMPANY_ID")
    private String areaCompanyId;

    @Column(name = "POWERSTATION_ID")
    private String  powerstationId;

    @Column(name = "TRANSPORT_TYPE")
    private String transportType;

    @Column(name = "PLAN_ATTRIBUTE_TYPE")
    private String planAttributeType;

    @Column(name = "SUPPLIER_UNIT_ID")
    private String supplierUnitId;

    @Column(name = "COAL_CATEGORY_ID")
    private String coalCategoryId;

    @Column(name = "PURCHASE_TOTAL_YEAR")
    private Float purchaseTotalYear;

    @Column(name = "SUPPLY_AREA_NAME")
    private String supplyAreaName;

    @Column(name = "PURCHASE_TOTAL")
    private Float purchaseTotal;

    @Column(name = "QNET")
    private String qnet;

    @Column(name = "STD")
    private String std;

    @Column(name = "NATURAL_COAL_UNITPRICE")
    private Float naturalCoalUnitprice;

    @Column(name = "STANDARD_COAL_UNITPRICE")
    private Float standardCoalUnitprice;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "CREATE_DATE")
    private Date createDate;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "LAST_UPDATE_DATE")
    private Date lastUpdateDate;

    @Column(name = "DEMAND_PLAN_YEAR")
    private String demandPlanYear;

    @Column(name = "EST_ELECTRICITY_PRODUCE", length = 100)
    private String estElectricityProduce;

    @Column(name = "COAL_CONSUME_TOTAL", precision = 20, scale = 2)
    private BigDecimal coalConsumeTotal;

    @Column(name = "EARLIER_TERM_QUANTITY", precision = 20, scale = 2)
    private BigDecimal earlierTermQuantity;

    @Column(name = "LATER_TERM_QUANTITY", precision = 20, scale = 2)
    private BigDecimal laterTermQuantity;

    public BigDecimal getLaterTermQuantity() {
        return laterTermQuantity;
    }

    public void setLaterTermQuantity(BigDecimal laterTermQuantity) {
        this.laterTermQuantity = laterTermQuantity;
    }

    public BigDecimal getEarlierTermQuantity() {
        return earlierTermQuantity;
    }

    public void setEarlierTermQuantity(BigDecimal earlierTermQuantity) {
        this.earlierTermQuantity = earlierTermQuantity;
    }

    public BigDecimal getCoalConsumeTotal() {
        return coalConsumeTotal;
    }

    public void setCoalConsumeTotal(BigDecimal coalConsumeTotal) {
        this.coalConsumeTotal = coalConsumeTotal;
    }

    public String getEstElectricityProduce() {
        return estElectricityProduce;
    }

    public void setEstElectricityProduce(String estElectricityProduce) {
        this.estElectricityProduce = estElectricityProduce;
    }

    public String getDemandSupplierId() {
        return demandSupplierId;
    }

    public void setDemandSupplierId(String demandSupplierId) {
        this.demandSupplierId = demandSupplierId;
    }

    public String getDemandPlanId() {
        return demandPlanId;
    }

    public void setDemandPlanId(String demandPlanId) {
        this.demandPlanId = demandPlanId;
    }

    public Date getDemandPlanDate() {
        return demandPlanDate;
    }

    public void setDemandPlanDate(Date demandPlanDate) {
        this.demandPlanDate = demandPlanDate;
    }

    public String getSupplyProvinceId() {
        return supplyProvinceId;
    }

    public void setSupplyProvinceId(String supplyProvinceId) {
        this.supplyProvinceId = supplyProvinceId;
    }

    public String getAreaCompanyId() {
        return areaCompanyId;
    }

    public void setAreaCompanyId(String areaCompanyId) {
        this.areaCompanyId = areaCompanyId;
    }

    public String getPowerstationId() {
        return powerstationId;
    }

    public void setPowerstationId(String powerstationId) {
        this.powerstationId = powerstationId;
    }

    public String getTransportType() {
        return transportType;
    }

    public void setTransportType(String transportType) {
        this.transportType = transportType;
    }

    public String getPlanAttributeType() {
        return planAttributeType;
    }

    public void setPlanAttributeType(String planAttributeType) {
        this.planAttributeType = planAttributeType;
    }

    public String getSupplierUnitId() {
        return supplierUnitId;
    }

    public void setSupplierUnitId(String supplierUnitId) {
        this.supplierUnitId = supplierUnitId;
    }

    public String getCoalCategoryId() {
        return coalCategoryId;
    }

    public void setCoalCategoryId(String coalCategoryId) {
        this.coalCategoryId = coalCategoryId;
    }

    public Float getPurchaseTotalYear() {
        return purchaseTotalYear;
    }

    public void setPurchaseTotalYear(Float purchaseTotalYear) {
        this.purchaseTotalYear = purchaseTotalYear;
    }

    public String getSupplyAreaName() {
        return supplyAreaName;
    }

    public void setSupplyAreaName(String supplyAreaName) {
        this.supplyAreaName = supplyAreaName;
    }

    public Float getPurchaseTotal() {
        return purchaseTotal;
    }

    public void setPurchaseTotal(Float purchaseTotal) {
        this.purchaseTotal = purchaseTotal;
    }

    public String getQnet() {
        return qnet;
    }

    public void setQnet(String qnet) {
        this.qnet = qnet;
    }

    public String getStd() {
        return std;
    }

    public void setStd(String std) {
        this.std = std;
    }

    public Float getNaturalCoalUnitprice() {
        return naturalCoalUnitprice;
    }

    public void setNaturalCoalUnitprice(Float naturalCoalUnitprice) {
        this.naturalCoalUnitprice = naturalCoalUnitprice;
    }

    public Float getStandardCoalUnitprice() {
        return standardCoalUnitprice;
    }

    public void setStandardCoalUnitprice(Float standardCoalUnitprice) {
        this.standardCoalUnitprice = standardCoalUnitprice;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getDemandPlanYear() {
        return demandPlanYear;
    }

    public void setDemandPlanYear(String demandPlanYear) {
        this.demandPlanYear = demandPlanYear;
    }

    @Override
    public String toString() {
        return "LandCoalDemandplanEntity{" +
                "demandSupplierId='" + demandSupplierId + '\'' +
                ", demandPlanId='" + demandPlanId + '\'' +
                ", demandPlanDate=" + demandPlanDate +
                ", supplyProvinceId='" + supplyProvinceId + '\'' +
                ", areaCompanyId='" + areaCompanyId + '\'' +
                ", powerstationId='" + powerstationId + '\'' +
                ", transportType='" + transportType + '\'' +
                ", planAttributeType='" + planAttributeType + '\'' +
                ", supplierUnitId='" + supplierUnitId + '\'' +
                ", coalCategoryId='" + coalCategoryId + '\'' +
                ", purchaseTotalYear=" + purchaseTotalYear +
                ", supplyAreaName='" + supplyAreaName + '\'' +
                ", purchaseTotal=" + purchaseTotal +
                ", qnet='" + qnet + '\'' +
                ", std='" + std + '\'' +
                ", naturalCoalUnitprice=" + naturalCoalUnitprice +
                ", standardCoalUnitprice=" + standardCoalUnitprice +
                ", createDate=" + createDate +
                ", lastUpdateDate=" + lastUpdateDate +
                ", demandPlanYear='" + demandPlanYear + '\'' +
                ", estElectricityProduce='" + estElectricityProduce + '\'' +
                ", coalConsumeTotal=" + coalConsumeTotal +
                ", earlierTermQuantity=" + earlierTermQuantity +
                ", laterTermQuantity=" + laterTermQuantity +
                '}';
    }


}
